package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.AnswerAppraiseGetListTask.AnswerAppraiseGetListRequest;
import com.smiier.skin.net.AnswerAppraiseGetListTask.AnswerAppraiseGetListResponse;
import com.smiier.skin.net.entity.Appraise;
import com.smiier.skin.util.GlobalSettings;

/**
 * 获取评价列表
 * 
 * @author 杨文华
 * 
 */
public class AnswerAppraiseGetListTask extends
		NetTask<AnswerAppraiseGetListRequest, AnswerAppraiseGetListResponse> {

	public static class AnswerAppraiseGetListRequest extends ORequest {
		public long doctor_uid;
		public String startid;
		public int pagesize;
		public ArrayList<Integer> Levels;
		public String appname = Constant.APP_NAME;
	}

	public static class AnswerAppraiseGetListResponse extends OResponse {
		public AppraiseList Res;
	}

	public static class AppraiseList implements INoProguard {
		public int Count;
		public ArrayList<Appraise> Appraises;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Answer.Appraise.GetList";
		mRequestMethod = METHOD_GET;
	}

}
